package vp.remedies.dr.home.allmain.remedy.activity;

import vp.remedies.dr.home.R;
import vp.remedies.dr.home.utils.Constantce;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class DrHomesViagraActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dr_homes_viagra);
		setView(Constantce.LANGUAGE_ENGLISH);
	}

	void setView(String language) {
		TextView headerTxt = (TextView) findViewById(R.id.hearderTxt);
		TextView detail1Txt = (TextView) findViewById(R.id.detail1Txt);
		TextView detail2Txt = (TextView) findViewById(R.id.detail2Txt);
		TextView detail3Txt = (TextView) findViewById(R.id.detail3Txt);
		TextView detail4Txt = (TextView) findViewById(R.id.detail4Txt);
		TextView detail5Txt = (TextView) findViewById(R.id.detail5Txt);
		TextView detail6Txt = (TextView) findViewById(R.id.detail6Txt);
		TextView detail7Txt = (TextView) findViewById(R.id.detail7Txt);
		TextView detail8Txt = (TextView) findViewById(R.id.detail8Txt);
		TextView detail9Txt = (TextView) findViewById(R.id.detail9Txt);
		String headerTxtString = null;
		String dr_home_viagra_1 = null;
		String dr_home_viagra_2 = null;
		String dr_home_viagra_3 = null;
		String dr_home_viagra_4 = null;
		String dr_home_viagra_5 = null;
		String dr_home_viagra_6 = null;
		String dr_home_viagra_7 = null;
		String dr_home_viagra_8 = null;
		String dr_home_viagra_9 = null;
		if (language.equals(Constantce.LANGUAGE_HINDI)) {
			headerTxtString = getResources().getString(
					R.string.dr_home_viagra_header_hi);
			dr_home_viagra_1 = getResources().getString(
					R.string.dr_home_viagra_1_hi);
			dr_home_viagra_2 = getResources().getString(
					R.string.dr_home_viagra_2_hi);
			dr_home_viagra_3 = getResources().getString(
					R.string.dr_home_viagra_3_hi);
			dr_home_viagra_4 = getResources().getString(
					R.string.dr_home_viagra_4_hi);
			dr_home_viagra_5 = getResources().getString(
					R.string.dr_home_viagra_5_hi);
			dr_home_viagra_6 = getResources().getString(
					R.string.dr_home_viagra_6_hi);
			dr_home_viagra_7 = getResources().getString(
					R.string.dr_home_viagra_7_hi);
			dr_home_viagra_8 = getResources().getString(
					R.string.dr_home_viagra_8_hi);
			dr_home_viagra_9 = getResources().getString(
					R.string.dr_home_viagra_9_hi);

		} else {
			headerTxtString = getResources().getString(
					R.string.dr_home_viagra_header_en);
			dr_home_viagra_1 = getResources().getString(
					R.string.dr_home_viagra_1_en);
			dr_home_viagra_2 = getResources().getString(
					R.string.dr_home_viagra_2_en);
			dr_home_viagra_3 = getResources().getString(
					R.string.dr_home_viagra_3_en);
			dr_home_viagra_4 = getResources().getString(
					R.string.dr_home_viagra_4_en);
			dr_home_viagra_5 = getResources().getString(
					R.string.dr_home_viagra_5_en);
			dr_home_viagra_6 = getResources().getString(
					R.string.dr_home_viagra_6_en);
			dr_home_viagra_7 = getResources().getString(
					R.string.dr_home_viagra_7_en);
			dr_home_viagra_8 = getResources().getString(
					R.string.dr_home_viagra_8_en);
			dr_home_viagra_9 = getResources().getString(
					R.string.dr_home_viagra_9_en);

		}
		headerTxt.setText(headerTxtString);
		detail1Txt.setText(dr_home_viagra_1);
		detail2Txt.setText(dr_home_viagra_2);
		detail3Txt.setText(dr_home_viagra_3);
		detail4Txt.setText(dr_home_viagra_4);
		detail5Txt.setText(dr_home_viagra_5);
		detail6Txt.setText(dr_home_viagra_6);
		detail7Txt.setText(dr_home_viagra_7);
		detail8Txt.setText(dr_home_viagra_8);
		detail9Txt.setText(dr_home_viagra_9);
	}
}